package com.jmp.api.admin.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import one.stand.dto.PageResponse2;

import java.util.List;

/**
 * @author cjr
 */
@Data
@Builder
public class GoodsListResponse {
    private PageResponse2<Goods> goodsList;
    private List<Type> typeList;

    @Data
    @Builder
    public static class Goods {
        private Integer goodsId;
        private String photo;
        private String goodsName;
        private List<Integer> goodsPlatformTypeId;
        private List<String> goodsPlatformTypeName;
        private String goodsTypeName;
        private String companyName;
        private String createTime;
        private Integer popularityLevel;
        @ApiModelProperty("人气值")
        private Integer popularityNum;
        @ApiModelProperty("人气加值")
        private Integer popularityAdd;
        private String qrCode;
    }

    @Data
    @Builder
    public static class Type {
        private Integer goodstypeId;
        private String name;
        private Integer parentId;
        private String groupName;
    }
}
